package cn.lu.joke.mvp.presenter.user;

import java.util.List;

import cn.lu.joke.entry.ChatMessage;
import cn.lu.joke.entry.Msg;
import cn.lu.joke.entry.ResultData;
import cn.lu.joke.entry.User;
import cn.lu.joke.mvp.model.CallbackImpl;
import cn.lu.joke.mvp.model.DataModelManager;
import cn.lu.joke.mvp.model.UserModel;
import cn.lu.joke.mvp.presenter.BasePresenter;
import cn.lu.joke.mvp.view.ILoginView;
import cn.lu.joke.mvp.view.IMainView;

public class MainPresenterImpl extends BasePresenter<IMainView> implements IMainPresenter {
    public MainPresenterImpl(IMainView view) {
        super(view);
    }

    @Override
    public void getUserInfo() {
        DataModelManager.create(UserModel.class)
                .getUserInfo(new CallbackImpl<ResultData<User>, IMainView>(getView()) {
                    @Override
                    public void onSuccess(ResultData<User> data) {
                        mView.onVerifyUser(data);
                    }
                });
    }

}
